Skip to content

[fix] Fix Fishing Net with Starcatcher 3.2+ and add Hybrid Aquatic capture. - #77

Merged
MarbleGateKeeper merged 2 commits into
DragonsPlusMinecraft:1.21.1/6.0.0-devfrom
modfixerupper:master
Nov 18, 2026
Merged

MarbleGateKeeper merged 2 commits into
DragonsPlusMinecraft:1.21.1/6.0.0-devfrom
modfixerupper:master

Conversation

@modfixerupper

Copy link
Copy Markdown
Contributor

Found these while debugging a modpack instance that had Create: Integrated Farming 1.4.3 running with Starcatcher 3.3.10. The net crashed the server with NoSuchMethodError the moment it caught a fish, and behind that sat two smaller bugs and one missing compat. This branch fixes all of it in one go.

  • Starcatcher 3.2 removed the 5-arg FishApi.makeItemStackNonBucket overload and added a bob parameter. StarcatcherFishingNetCatchProvider already builds a throwaway bob for select() and now passes that same bob to the current method instead of calling the removed one. Compile dep is Starcatcher 3.3.10 now, and starcatcher_version_range is [3.2,4), which is what the call actually needs.

  • Captured entities kept their guaranteed equipment before. The net rolled the loot table and dropped a experience nugget, but never looked at the equipment slots before discarding the entity. Starcatcher fish carry the caught fish item in their body slot with a guaranteed drop chance, so a capture collected nothing besides the nugget. Equipment with a drop chance over 1.0F is collected now, the guaranteed-drop half of vanilla dropCustomDeathLoot, minus PREVENT_EQUIPMENT_DROP. One accesstransformer line for Mob.getEquipmentDropChance came with this.

  • canCapture compared sizes with a strict <. A salmon is exactly 0.7 wide and the default fishingNetCapturedCreatureMaxSize is 0.7, so stock config never captured a salmon, the fish the Fishing Net ponder scene shows. The check is <= now and the config comment says the limit itself is included.

  • New optional integration for Hybrid Aquatic. HA entities don't extend vanilla WaterAnimal, they go through hapi's BaseWaterAnimal, so the default predicates never matched them. The integration registers BaseWaterAnimal.class::isInstance on the same FishingNetEntityCaptures.register hook the Nether Depths integration uses for lava animals. neoforge.mods.toml gets optional deps on hapi [1.1.3,) and hybrid_aquatic [1.7.4,2), and the dev runtime pulls in lithostitched and kotlin-for-forge since both HA and hapi declare the kotlinforforge loader and HA hard requires lithostitched. The existing geckolib pin 4.8.4 covers HA's 4.8.3 floor.

About the Starcatcher range: 3.0.6 to 3.1.x still ship the old overload, and the new call does not exist there. [3.2,4) says so now instead of [3.0.6,4) claiming support the code cannot deliver.

Testing: gradlew build passes with the new dependencies and all integration source sets compile. A dev server with Starcatcher 3.3.10, hapi, Hybrid Aquatic, kotlin-for-forge and lithostitched boots clean. Every fix here ran as a gametest in a small addon carrying the same changes. This branch moves the same fixes into the mod itself.

CHANGELOG.md is left alone since it reads like it gets written at release time.

@MarbleGateKeeper

Copy link
Copy Markdown
Member

Thanks for your work! Some extra work is needed though.

@MarbleGateKeeper
MarbleGateKeeper merged commit e604a73 into DragonsPlusMinecraft:1.21.1/6.0.0-dev Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants